import java.util.Comparator;

public class childcom implements Comparator<child> {
    @Override
    public int compare(child o1, child o2) {
        if(o1.age>o2.age)return 1;
                else
        return 0;
    }
}
